home *** CD-ROM | disk | FTP | other *** search
Text File | 2001-02-20 | 637 b | 40 lines | [AMAS/AMAP] |
- // -* DropBehavior.js *-
- //
- // Name: Drop behavior
- // Description:
- // Author:
- // Version: $Id: DropBehavior.js,v 1.1 2000/12/21 15:03:56 consumer Exp $
- //
-
- function DropBehavior()
- {
- // No need for an object with this behavior.
- }
-
- function DropBehaviorStart(solidName)
- {
- TSUpdateNodeAttribute(solidName, 'fixed', '0');
- }
-
- function DropBehaviorStop()
- {
- }
-
- //
- // Event functions
- //
-
- function DropBehaviorStartEvent(obj, event)
- {
- var targetSolid = TSGetExtraParam(event, 'targetSolid');
-
- if (targetSolid == "")
- DropBehaviorStart(obj);
- else
- DropBehaviorStart(targetSolid);
- }
-
- function DropBehaviorStopEvent(obj, event)
- {
- }
-